package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class SetItemInformationList {

    private int beginIndex;
    private int endIndex;
    private List<SetItemInformation> setItemInformationList;

    public SetItemInformationList(List<SetItemInformation> setItemInformationList) {
        this.beginIndex = setItemInformationList.get(0).getBeginIndex();
        this.endIndex = setItemInformationList.get(setItemInformationList.size() - 1).getEndIndex();
        this.setItemInformationList = setItemInformationList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return setItemInformationList.size();
    }

    public SetItemInformation get(int index) {
        return setItemInformationList.get(index);
    }

}
